<!-- 留言列表 -->
<!-- 新闻列表 -->
<template>
    <div class="page-box h100 display-flex czbj">
        <div>
            <dxtable :headBtn="headBtn" :dataJson="dataJson" :portUrl="portUrl" :qx="qx" ref="databale"
                sonRouter="cgnewsxq"></dxtable>
        </div>
    </div>
</template>
<script lang='ts' setup>
import dxtable from "../../components/util/dxtable.vue";
import sort from "../../components/util/sort.vue";
import { dxget, dxpost, qurl, hf } from "../../util/index";
import { h, ref, reactive } from "vue";
const props = defineProps({
    pup: { type: String },
});

let headBtn = [];
const zdList = ref()
const databale = ref();
const initeer = () => {
    databale.value.initDataExpose();
};
const emit = defineEmits(["callBack"]);
// 弹窗公用该列表
let dataJson = reactive([
    {
        title: "姓名",
        key: "Name",
        width:100,
        search: true, // 是否在搜索栏展示
    },

    {
        title: "邮箱",
        key: "email",
        width:160,
        search: true, // 是否在搜索栏展示
        ellipsis: {
            tooltip: true
        }
    },
    {
        title: "联系电话",
        key: "Mobile",
        width:100,
        search: true, // 是否在搜索栏展示
        ellipsis: {
            tooltip: true
        }
    },
    {
        title: "联系时间",
        key: "Time",
        width:160,
        ellipsis: {
            tooltip: true
        }
    }, {
        title: "咨询内容",
        key: "Detail",
        ellipsis: {
            tooltip: true
        }
    },
    {
        title: "排序",
        width: 100,
        render(row) {
            row.databaseName = "yidaliuyan";
            return h(sort, {
                row,
                onCallBack: () => {
                    initeer();
                },
            });
        },
    },
    {
        title: "留言时间",
        key: "addTime",
        width: "140",
        type: "daterange",
       
    },
]);
let portUrl = "yida/yidaliuyan?roleId="+localStorage.id;
const qx = {
    DeletePermissionID: "yidaleavedel", //删除
    EditPermissionIdentifier: "yidaleavebj", // 编辑
    NewPermissionIdentifier: "yidaleavexza", // 新建
    ViewPermissionID: "yidaleaveck", // 查看
};


</script>
  
  
  